package com.ctg.itrdc.sysmgr.portal.data.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.pasp.core.Entity;


@Table(name = "CONTACTS_INFO")
public class ContactsInfo extends Entity<Long> {
	private static final long serialVersionUID = -2811347047325737314L;


	/**
	 * 记录参与人联系信息的唯一标识，作为主键。
	 */
	@Id
	@Column(name = "CONNECT_ID")
	private Long connectId;

	/**
	 * 记录参与人的联系人名称。
	 */
	@Column(name = "CONTACT_NAME")
	private String contactName;

	/**
	 * 记录参与人标识。
	 */
	@Column(name = "PARTY_ID")
	private Long partyId;

	/**
	 * 记录创建的员工。
	 */
	@Column(name = "CREATE_STAFF")
	private Long createStaff;

	/**
	 * 记录修改的时间。
	 */
	@Column(name = "UPDATE_DATE")
	private Timestamp updateDate;

	/**
	 * 记录参与人联系地址的邮政编码。
	 */
	@Column(name = "POSTCODE")
	private String postcode;

	/**
	 * 记录备注信息。
	 */
	@Column(name = "REMARK")
	private String remark;

	/**
	 * 状态变更的时间。
	 */
	@Column(name = "STATUS_DATE")
	private Timestamp statusDate;

	/**
	 * 对应参与人分片键1。
	 */
	@Column(name = "SHARD1")
	private Long shard1;

	/**
	 * 记录修改的员工。
	 */
	@Column(name = "UPDATE_STAFF")
	private Long updateStaff;

	/**
	 * 对应参与人分片键2。
	 */
	@Column(name = "SHARD2")
	private Long shard2;

	/**
	 * 记录参与人的邮件地址。
	 */
	@Column(name = "POST_ADDR")
	private String postAddr;

	/**
	 * 记录参与人的传真号码。
	 */
	@Column(name = "FAX")
	private String fax;

	/**
	 * 记录参与人的家庭联系电话。
	 */
	@Column(name = "HOME_PHONE")
	private String homePhone;

	/**
	 * 记录参与人联系详细信息。
	 */
	@Column(name = "CONTACT_DESC")
	private String contactDesc;

	/**
	 * 记录上一次维护记录的订单项标识。
	 */
	@Column(name = "LAST_ORDER_ITEM_ID")
	private Long lastOrderItemId;

	/**
	 * 记录参与人的联系单位。
	 */
	@Column(name = "CONTACT_EMPLOYER")
	private String contactEmployer;

	/**
	 * 记录参与人的联系地址。
	 */
	@Column(name = "CONTACT_ADDR")
	private String contactAddr;

	/**
	 * 描述参与人办公室的电话号码。
	 */
	@Column(name = "OFFICE_PHONE")
	private String officePhone;

	/**
	 * 见主数据【参与人类型】，个人、组织。LOVB。PTY-0001
	 */
	@Column(name = "CONTACT_TYPE")
	private String contactType;

	/**
	 * 租户标识。
	 */
	@Column(name = "TENANT_ID")
	private Integer tenantId;

	/**
	 * 记录参与人的移动电话号码。
	 */
	@Column(name = "MOBILE_PHONE")
	private String mobilePhone;

	/**
	 * 状态
	 */
	@Column(name = "STATUS_CD")
	private String statusCd;

	/**
	 * 记录参与人联系人的性别。LOVB。PTY-0008
	 */
	@Column(name = "CONTACT_GENDER")
	private Short contactGender;

	/**
	 * 记录创建的时间。
	 */
	@Column(name = "CREATE_DATE")
	private Timestamp createDate;

	/**
	 * 记录参与人的eMail地址。
	 */
	@Column(name = "E_MAIL")
	private String eMail;


	public void setConnectId(Long connectId){
		this.connectId = connectId;
	}

	public Long getConnectId(){
		return this.connectId;
	}

	public void setContactName(String contactName){
		this.contactName = contactName;
	}

	public String getContactName(){
		return this.contactName;
	}

	public void setPartyId(Long partyId){
		this.partyId = partyId;
	}

	public Long getPartyId(){
		return this.partyId;
	}

	public void setCreateStaff(Long createStaff){
		this.createStaff = createStaff;
	}

	public Long getCreateStaff(){
		return this.createStaff;
	}

	public void setUpdateDate(Timestamp updateDate){
		this.updateDate = updateDate;
	}

	public Timestamp getUpdateDate(){
		return this.updateDate;
	}

	public void setPostcode(String postcode){
		this.postcode = postcode;
	}

	public String getPostcode(){
		return this.postcode;
	}

	public void setRemark(String remark){
		this.remark = remark;
	}

	public String getRemark(){
		return this.remark;
	}

	public void setStatusDate(Timestamp statusDate){
		this.statusDate = statusDate;
	}

	public Timestamp getStatusDate(){
		return this.statusDate;
	}

	public void setShard1(Long shard1){
		this.shard1 = shard1;
	}

	public Long getShard1(){
		return this.shard1;
	}

	public void setUpdateStaff(Long updateStaff){
		this.updateStaff = updateStaff;
	}

	public Long getUpdateStaff(){
		return this.updateStaff;
	}

	public void setShard2(Long shard2){
		this.shard2 = shard2;
	}

	public Long getShard2(){
		return this.shard2;
	}

	public void setPostAddr(String postAddr){
		this.postAddr = postAddr;
	}

	public String getPostAddr(){
		return this.postAddr;
	}

	public void setFax(String fax){
		this.fax = fax;
	}

	public String getFax(){
		return this.fax;
	}

	public void setHomePhone(String homePhone){
		this.homePhone = homePhone;
	}

	public String getHomePhone(){
		return this.homePhone;
	}

	public void setContactDesc(String contactDesc){
		this.contactDesc = contactDesc;
	}

	public String getContactDesc(){
		return this.contactDesc;
	}

	public void setLastOrderItemId(Long lastOrderItemId){
		this.lastOrderItemId = lastOrderItemId;
	}

	public Long getLastOrderItemId(){
		return this.lastOrderItemId;
	}

	public void setContactEmployer(String contactEmployer){
		this.contactEmployer = contactEmployer;
	}

	public String getContactEmployer(){
		return this.contactEmployer;
	}

	public void setContactAddr(String contactAddr){
		this.contactAddr = contactAddr;
	}

	public String getContactAddr(){
		return this.contactAddr;
	}

	public void setOfficePhone(String officePhone){
		this.officePhone = officePhone;
	}

	public String getOfficePhone(){
		return this.officePhone;
	}

	public void setContactType(String contactType){
		this.contactType = contactType;
	}

	public String getContactType(){
		return this.contactType;
	}

	public void setTenantId(Integer tenantId){
		this.tenantId = tenantId;
	}

	public Integer getTenantId(){
		return this.tenantId;
	}

	public void setMobilePhone(String mobilePhone){
		this.mobilePhone = mobilePhone;
	}

	public String getMobilePhone(){
		return this.mobilePhone;
	}

	public void setStatusCd(String statusCd){
		this.statusCd = statusCd;
	}

	public String getStatusCd(){
		return this.statusCd;
	}

	public void setContactGender(Short contactGender){
		this.contactGender = contactGender;
	}

	public Short getContactGender(){
		return this.contactGender;
	}

	public void setCreateDate(Timestamp createDate){
		this.createDate = createDate;
	}

	public Timestamp getCreateDate(){
		return this.createDate;
	}

	public void setEMail(String eMail){
		this.eMail = eMail;
	}

	public String getEMail(){
		return this.eMail;
	}

	@Override
	public Long getId() {
		return connectId;
	}
	
	@Override
	public void setId(Long id) {
		this.connectId = id;
	}
	
	public ContactsInfo() {
		super();
    }
}
